package com.itheima.vmmysql.Service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.itheima.vmmysql.Mapper.DeleteTableMapper;
import com.itheima.vmmysql.Service.DeleteTableService;

// 在 Service 层调用 deleteTable 方法
@Service
public class DeleteTableServiceImpl implements DeleteTableService {
    @Autowired
    private DeleteTableMapper deleteTableMapper;

    @Override
    public void deleteTable(String tableName) throws Exception {
        deleteTableMapper.dropTable(tableName);
    }
}

